package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.RewardsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RewardsService {

    @Resource
    private RewardsMapper rewardsMapper;

    public List<Integer> countInvitedByUserId(Integer userId){
        return rewardsMapper.countInvitedByUserId(userId);
    }

    public List<Integer> selectUserIdNoComsu(){
        return rewardsMapper.selectUserIdNoComsu();
    }
}
